package com.sunnada.edu.business.project.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

@Service
@Transactional
public interface ProjectService {
	/***
	 * explain 总数量
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return int
	 */
	public int getProjectCots(HashMap<String, String> params);

	/**
	 * explain 查询功能
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return List<?>
	 */
	public List<?> findProjects(HashMap<String, String> params);
	
	
	/***
	 * explain 用户删除
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String projectDelete(HashMap<String, String> params);

	/**
	 * explain 用户添加保存
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String projectAdd(HashMap<String, String> params,HttpServletRequest request);

	/**
	 * explain 用户修改保存
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String projectUpdate(HashMap<String, String> params,HttpServletRequest request);

	/**
	 * explain 获得用户信息
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return Map
	 */
	public Map getProjectByRecId(HashMap<String, String> params);


	/**
	 * explain 获得用户所有信息
	 * 
	 * @author zjc 2015-5-12 update zjc 2015-5-12
	 * @param params
	 * @return String[]
	 */
	public Map getProject(HashMap<String, String> params);


	/**
	 * 启用
	 * 
	 * @param params
	 * @return
	 */
	public String projectEnable(HashMap<String, String> params);

	/**
	 * 禁用
	 * 
	 * @param params
	 * @return
	 */
	public String projectDisable(HashMap<String, String> params);

}
